package com.hunttown.mes.rpc.domain;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * created by wangjunfu on 2018-11-26 15:06:17
 */
public class AnalysisNoticeDTO implements Serializable {
    private Integer id;
    private Integer entId;
    private Integer catalogId;
    private String noticeTitle;
    private Integer isNew;
    private Integer isEmergent;
    private String morningBackup;
    private String onBackup;
    private String onDuty;
    private String onHoliday;
    private String noticeContent;
    private Integer adminId;
    private Date createTime;
    private Integer stopFlag;
    private Integer deleteFlag;

    private String catalogName;
    private String adminName;
    private String createTimeSr;

    //以下内容由Alt+Ins快捷生成

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntId() {
        return entId;
    }

    public void setEntId(Integer entId) {
        this.entId = entId;
    }

    public Integer getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(Integer catalogId) {
        this.catalogId = catalogId;
    }

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsEmergent() {
        return isEmergent;
    }

    public void setIsEmergent(Integer isEmergent) {
        this.isEmergent = isEmergent;
    }

    public String getMorningBackup() {
        return morningBackup;
    }

    public void setMorningBackup(String morningBackup) {
        this.morningBackup = morningBackup;
    }

    public String getOnBackup() {
        return onBackup;
    }

    public void setOnBackup(String onBackup) {
        this.onBackup = onBackup;
    }

    public String getOnDuty() {
        return onDuty;
    }

    public void setOnDuty(String onDuty) {
        this.onDuty = onDuty;
    }

    public String getOnHoliday() {
        return onHoliday;
    }

    public void setOnHoliday(String onHoliday) {
        this.onHoliday = onHoliday;
    }

    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(Integer stopFlag) {
        this.stopFlag = stopFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getCreateTimeSr() {
        if (createTimeSr == null || createTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (createTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(createTime.getTime()));
            }
        } else {
            return createTimeSr;
        }
    }

    public void setCreateTimeSr(String createTimeSr) {
        this.createTimeSr = createTimeSr;
    }
}